import {get, post} from '../config/https_method.js'


/**
 * 获取文章分页列表
 */
export const getArticlePageList = query => get('/association/article/getArticlePageList', query);

/**
 * 获取文章分页列表去除HTML
 */
export const getArticlePageListWithoutHTML = query => get('/association/article/getArticlePageListWithoutHTML', query);
/**
 * 获取文章
 */
export const getArticle = query => get('/association/article/getArticle', query);

/**
 * 删除
 */
export const deleteArticle = data => post('/association/article/deleteArticle', data);

/**
 * 修改
 */
export const updateArticle = data => post('/association/article/updateArticle', data);

/**
 * 添加
 */
export const addArticle = data => post('/association/article/addArticle', data);
/**
 * 发布状态
 */
export const auditArticle = data => post('/association/article/auditArticle', data);
